import Vue from 'vue'
import App from './App'
import uView from 'uview-ui';


import VueCompositionAPI from '@vue/composition-api'
Vue.use(VueCompositionAPI)

import sendMessage from '@/utils/sendMessage.js';
// 注册 sendMessage 为全局插件
Vue.prototype.$messageSender = sendMessage;

Vue.use(uView);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

 
Vue.use(ElementUI);

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

//请求加载组件
// import msbDialog from './node_modules/msb-dialog/pages/components/msb-dialog/msb-dialog.vue';
// import menuDialog from './node_modules/msb-dialog/pages/components/menu-dialog/menu-dialog.vue';
// //组件挂载到全局，方便每个页面使用
// Vue.component('msbDialog ', msbDialog );
// Vue.component('menuDialog ', menuDialog );

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	el: '#app',
	render: h => h(App)
})
app.$mount()


